-- GENERATED SPELL FOR [Lieutenant General Andorov] --


function spell0_15471(pUnit, Event) --@Aura of Command,Self--
pUnit:FullCastSpellOnTarget(25516,pUnit)
pUnit:RegisterEvent('Sorts_15471', 30000, 1)
end

function spell1_15471(pUnit, Event) --@Bash,n/a--
pUnit:FullCastSpellOnTarget(25515,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15471', 5252, 1)
end

function spell2_15471(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(22591,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15471', 548, 1)
end

function Sorts_15471(pUnit, Event)
local choix_sorts_15471 = math.random(0, 2)
if choix_sorts_15471 == 0 then
pUnit:RegisterEvent('spell0_15471', 1, 1)
end
if choix_sorts_15471 == 1 then
pUnit:RegisterEvent('spell1_15471', 1, 1)
end
if choix_sorts_15471 == 2 then
pUnit:RegisterEvent('spell2_15471', 1, 1)
end
end

function mob15471_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15471', math.random(1500, 3000), 1)
end

function mob15471_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15471_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15471_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15471, 1, 'mob15471_Action')
RegisterUnitEvent(15471, 2, 'mob15471_Leave')
RegisterUnitEvent(15471, 3, 'mob15471_Kill')
RegisterUnitEvent(15471, 4, 'mob15471_Die')
